package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.buiness.pojo.Category;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApCategoryService;
import com.zhentao.mapper.ApCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 86150
* @description 针对表【category】的数据库操作Service实现
* @createDate 2024-09-14 19:56:02
*/
@Service
public class ApCategoryServiceImpl implements ApCategoryService {
@Autowired
private ApCategoryMapper categoryMapper;

    /**
     * 用户的商品类型列表
      * @return
     */
@Override
    public ResponseResult catlist() {
        List<Category> categories = categoryMapper.selectList(null);
        return ResponseResult.okResult(categories);
    }
}




